import http from '@/utils/http'

export function getBannerAPI(params = {}) {
	const { distributionSite = '1' } = params
	return http({
		url: 'home/banner',
		params: {
			distributionSite
		}
	})
}

export function getNewAPI() {
	return http.get('home/new')
}
export function getHotAPI() {
	return http.get('home/hot')
}

export function getGoodsAPI() {
	return http.get('home/goods')
}